#ifndef GUARD_Student_info
#define GUARD_Student_info

// TODO
#include <string>
#include <vector>
#include <istream>
#include <iostream>
using namespace std;

class Student_info{
	// TODO
public:
	Student_info();
	Student_info(std::istream &is);
	double grade() const;
	std::istream &read(std::istream &is);
	std::istream &read_hw(std::istream &in);
	std::string name() const{ return n;}
	bool valid() const{ return homework.empty(); }


private:
	std::string n;
	double midterm, final;
	std::vector<double> homework;

};

// TODO
bool compare(const Student_info &x, const Student_info &y);




#endif
